﻿//using Wizard.Runtime;

namespace Wizard.Functions
{
    using Wizard.Runtime;

    internal class Not : OneParam<bool, bool>
    {
        public Not(IHasValue<bool> param1)
            : base("not", FunctionType.@operator, param1)
        {
            // this is compile time
        }

        protected override bool RecalcValue(IRunContext context)
        {
            return !mParam1.Value(context);
        }

        
        //private delegate int RecalcDelegate(IRunContext context, int a, int b);

        
    }
}